Method parser and tests