Added TEST_DEBUG as a setting to tests
Updated engine ordering