dom.split test case and bug fix for issue #17.