[PLAT-4119] added logic to swap test user for undefined user