Add tests, refactor to handle multi-line scripts, refactor to
 handle script with single DELIMITER statement