Testing methods of getting id in controller.