Fixed tests when running under build script.