Fix: heredocs syntax and tests

This should fix #11, also improved `assert_correct_syntax` to use search

- escape quotes correctly
- don't include content on the first line