ldb: Add test for behaviour of rdn_name