Working tests with and without mocks