mocking things to get tests passing