Test assignment in controller index