Functional Tests and Meta XR Simulator / VR headsets

Functional Tests and Meta XR simulator (headset also)

I have multiple projects spanning engine version 5.1, 5.2 and 5.4

In each of these projects when I create a VR project pressing play will play the level inside meta XR simulator, with the VR preview window showing what you are looking at as expected.

However, when a functional test is run from the session front end (or command line) the test will run inside the VR preview window but the meta XR simulator will not initialise like it does in begin play.

Has anyone had success getting tests to run with the simulator or headset working correctly?