Fixed a critical bug with apply_test()