move test to end of body