API and tests for create Instance