Minor changes to modinput tests, plus a critical fix to the data_open function