tests: fix throwing assertion.