Hve corrected the test case from attempt. Have written a create method in attampt controler.