add freemodbus test code

Signed-off-by: armink <armink.ztl@gmail.com>