move test from main to test dir