Add test
Merge pull request #4 from gideonthomas/issue277

Add test