migrate getAdminOper changes from 2.x and adds some more tests for shared contacts and formats