Tests: Made tests green by introducing equals/gethashcode