add unittest support
unittest: rename utils.cpp to test_utils.cpp
Merge pull request #312 from haiwen/feature-unittest

add unittest support