Mock hardware devices for creating unit tests