first complete and working integration test with mocks