fixbug in test