structure test with custom main class