Added unit test and build script