Improved unit tests by only testing against public API of classes and ignoring implementation details