Add more tests to Parser. Test isMainScope() and block related methods.