add a test to try creating a device with invalid params