add more tests for util
change setConsole to private
fixed client-side unit tests
Merge pull request #903 from drewfish/unit-client

fixed client-side unit tests
Merge pull request #902 from lzhan/addunittest

Add more unit tests for util.