Updated modular input tests so they work when run with all tests

There was an issue with relative paths, which has now been resolved.
See modularinput_testlib for the new data_open() function.