Extended unit tests

Better equality and hashcode testing
Splitted server and database configuration