wrote a test for create method in case controller