fix falling through world bug in tests
fix terrain infinite loop bug test