test main method