Fixed lineno for method errors. Added tests.
Fixed merge conflict w/ checkAttributes