Added some tests to check that the Parser doesn't try to parse anything beyond EOF