tested main method for parsing cases