Added some rest tests and removed the DB object