Creating locally testable classes