add unit tests and build script for jenkins server