Basic tests for Parser class