Fixed build script to correctly configure tests.