Add test case for  bug