fixed test script to actually run