fstests: add generic test for file handles