Fix incorrect logic in #parseHostmaskFromPrefix(). Extend #toString() tests, add misc. tests for utility methods.