fixed some test cases which may fail in slow testing modes.