fixed build script and test