Add test for main method