refactored unit tests into embedded classes for unit and integration tests