tests mocks bunch of stuff