I tested your file locally and from moodle and I can’t recreate the issue.
You have several actions triggered “On: Page show”. It may be better to use “On: Show” instead. Sometimes page show triggers too early, i.e. before variables are updated properly.
I’m not sure what you’re trying to achieve with the Results page. In the end this page is meant to display the results object, but in your course the object is invisible. It might simplify the “Process test” action if you removed it and directed the users to a page outside of the test. All variables, e.g. the test score, will be available anyway.
You should move all objects on title level to AU level, otherwise you cannot publish to Scorm.