Test main class