split up build script for test