Add tests for new function error messages

No longer use querySelector or querySelectorAll on markup parsed via DOMParser.
dont necessarily need startBlocks here, as this is what gets override by the xml field inside the tests (i.e. could move this line to instead just be in your first test)