tests for switch user, #393