All database object has equal and hash methods implemented, fixed some tests