Add unit test for #37
Merge pull request #38 from seancorfield/master

Unit test for #37