Wrote some simple tests for behavior

Mocks out the interesting part, but testing a usb library
written in C is usually the hard part.