Add tests for parse() method