fix bugs in test