Added code to create or restore the test user. Except that if the website is saved then the user appears not to restore. It's a silent fail. More investigation needed...