The resource_setup and _data_setup methods fails while running
ims test cases with below error.
KeyError: 'id'
Pre generate the id and associate with payload so that clean up
can be called before resource creation to avoid resource leak.
Change-Id: I751b187918302a3708f20a41e015e470fa5a6ff5