updated the log setting in unit testing
fixed fragile test cases