bug fixed test case