Add some tests
Add equivalency functions and hash.