Add test for incorrect compact IPv6 address formatting

From issue #7
Fix bad IPv6 address formatting due to string comparison bug
Merge IPv6 address formatting fix

Closes #7