Add unit tests for rc binary and rc text