extract inner classes for further use outside of testcase