test added. Dbclient now added as a parameter to constructor