Created test to check equals method for Transaction class. Modified
equals method from Transaction class and overridden hashCode method to
recommended implementation.