Fix reduce_levels_test