Update unittest to take into account...

...Octal escapes and named character entities. These still don't work, but there was a test checking octal would throw, which is wrong.