Refactored testing to reuser server creation and db connection as well as soon util methods