Fix issue #29.

@pcl @edwardsa
Unit test that demonstrated issue #29.