add test for instance, also add instance feature