added test for bug