Add tests for unabc, and fix the bug in it.

Also: http://nedbatchelder.com/blog/201312/unabc.html