before refactoring / decomposition: production code implemented in Test class