added test case for issue 119
fixed #119