injection via constructor - Updates unit tests to use dependency injection instead of modifying object's internals