fix bugs in unit test
modify settings