Test main method added.