small bug fixes in parser

- added more tests for quit and ping