Fix bug in quote handling, add tests
2.0.2