correct test of main method