1. refactored queue creation for tests
2. file for common test operations