Fixed task_map require task_map on rails_admin and added some tests.