Unittests for the method parser
Bugfix class parser regex