test for create action api