test coverage of legacy code