RMR + unit test

Signed-off-by: fpumir <fpumir@terredeweb.fr>