Added tests for instance.getId