msi/tests: Allocate the user token dynamically and unify implementations.