begin rewriting specs to be unit tests instead of integration test