refactored tests to use fixtures