Add unit test of modbus_read_one_value()

Since we are refactoring the code, we need unit tests to help ensure
that we do not break the code.  This starts by doing some basic sanity
tests on the code that reads a single register value from a modbus device.