added a test for instance