Updated instancetest.py to use id_generator in UserData test