Tests for escape, unescape, extras methods. Test code is big enough that I've added section delimiting comments. This has helped make the code a lot more readable.