Change unit test framework to googletest

Testing C code with C++ testing frameworks seems quit common.