Fixed test so that it uses dynamic.

All tests pass ok.