Fix rcp functionality and add tests for it

Signed-off-by: Ken Barber <ken@bob.sh>
Release 0.3.1

Signed-off-by: Ken Barber <ken@bob.sh>