remove more test code from spec file