MDL-27177 roles: Unit test for newly created function.