fixed connect to db unit test