Fix jenkins build script
Add unittest to increase coverage