update agent initialization and tests to multiplex per principal