Clean up quizaccess_honestycheck #5897

* Add testcase file.
* Fix codechecker issues.
* Improve unit tests.