Add sanity tests for filetest primitives