added test for issue #5