test: move assert to improve clarity
Checklist
-
tests and code linting passes -
the commit message follows commit guidelines
Affected core subsystem(s)
test assert
Description of change
A test is run, and then the relevant assertion is put after a different test. Place the assertion near the relevant thing it is testing for clarity.