Add tests for unabc, and fix the bug in it.
Merge pull request #153 from edx/ned/fix-unabc

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