add test for create instance