Fix filesystem test that never raises an exception when run as root