test: new test-lib function to test for equality between files