Fix for issue #12

https://github.com/natefaubion/adt.js/issues/12

* Added test for bug
* Fixed issue

Also contains a test name fix.