Some tests.
Changed hash parameter to __hash__ for #1