refactored test fixtures into common methods