added test for issue #178