Added tests for invalid method parser