in-memory UAManager implementation with test