added test for issue249