working unit tests (along side integration tests)