db and manager, testing