Indeed, this is what I had been doing, but I am not happy about modifying the driver code, then having to have config setting somewhere to flip between test mode and production mode. There's several drivers and it starts to get messy, and introduces uncertainty about what is being tested (I did have an instance of getting all okay then finding out in the field that it was only okay with the mockup).