Convert CreateDevice on test-device script to an asynchronous call

Change required to test the scenario when the sender of a CreateDevice
request disconnects from the system bus. Current implementation is
blocking and it doesn't allow the user to cancel a request.
1 file changed