added test for issue 18