Fixed a few issues in the build system. Added unity build for the test cases