moved instance test to last