Add tests for the rc command