removes the test folder and reformats spec