improving test coverage before major refactoring effort