Add support for "registrationId" session enforcement.
Add registrationId tests.