testing main method