move spec to test