added test for issue 186