Adds test case for #180
Merge pull request #186 from scala/issue-180

Adds test case for #180