testing with mocks works