update build script, use fragment to prepare for testing