smarter hashing of test files