added tests and factories for apiaries controller