unit test added that reproduces #5