Some more class-level parser tests

Added tests for classes, method declarations, while and return statements.
Review by @TehMillhouse , please
Thanks, fixed