* move test code to /test

* compile the source with libgtest.a