Check the buffer's length when creating `ExceptionResponse` from buffer.
`isOn()`/`isOff()` should always return a boolean.
Added a check for the buffer's length to `fromBuffer()` methods.
Fixed an invalid function code for `ReadInputRegistersResponse`.
Added more tests.