Final create api test

Refactor test