Separated logic tests from integration tests