moved test to top