moved test to proper place