changed test from mocking objects to creating objects