Added tests to db_manager (John K, Sam N)