Cleanup of test_spec