add test case and fix for issue #53
Merge pull request #58 from robocoder/patch-53

add test case and fix for issue #53