fixes typo
Adds a test case to show the problem for issue #47