remove test directory and replace with spec