Consolidated test framework code into dedicated module