Add more hax to make test work with new Atmosphere JS (#12241)

Change-Id: Id75cabd402e243ed4bec7da61771554f2df4fbf6