def METHOD_NAME(oil, temp, num_elems, expected_mb, on):
    bio_deg = Biodegradation(waves)
    (sc, time_step) = weathering_data_arrays(bio_deg.array_types,
                                             water,
                                             num_elements=num_elems)[:2]
    model_time = (sc.spills[0].release_time +
                  timedelta(seconds=time_step))
    bio_deg.on = on
    bio_deg.prepare_for_model_run(sc)
    bio_deg.initialize_data(sc, sc.num_released)
    bio_deg.prepare_for_model_step(sc, time_step, model_time)
    bio_deg.weather_elements(sc, time_step, model_time)
    if on:
        assert np.isclose(sc.mass_balance['bio_degradation'], expected_mb)
    else:
        assert 'bio_degradation' not in sc.mass_balance