Fixed hashCode tests and made variable names a bit
more descriptive.