testing the create action in controller