Remove duplicate function definition

getDOMDocument is already defined a few lines below, using the more
standard "self" reference rather than "this".
Merge pull request #831 from peitschie/odt-doc-codefix

Remove duplicate function definition
Cope with test names containing angle brackets
Verify the number of steps vs. expected number of cursor positions
Fix doc length check when iterating backwards
Report one test per cursor position document fragment
Print function result rather than function.toString for test description
Merge pull request #783 from peitschie/test-improvements

Clean up OdtDocument cursor position tests
Ensure cursor is restored to step after refreshing annotations

Forgetting and then refreshing the annotations may cause the cursor to
end up in a non-step position.