make framework unit testable