added test for the last bug