Modified HashcodeTest.scala parameters and made it more modular.