Added test for on_the_fly parameter