Added test to cover the copying of collections without generic
definition
Removed unnecessary newline after return statement in hashCode method