refactored integration test
guard set up