Add tests to analytic_base_department