some bugs in test