add test for creating instance in quota context

Change-Id: I39f053f75e8067656415d7d02235da8e4ed73c38