Updated build script
Fixed incorrect variable name in tests