Add some file filter tests; clean up equals and hashcode methods.