#36690Add unit tests to new autoloader XCLASS handling
Description
Add three missing tests to the autoloader test case to test the new XCLASS handling of issue #31893. The patch also fixes a minor error when writing registered xclass files to the autoloader cache file. This error is covered by the third added test.