fix bugs in default test