Make create into post function and create test for create