Added more test mode DB functionalities