added tests to build scripts