Add TestDevice

A Device wich returns random Value objects. It's useful for testing
without having a "real" device.
Clean up