There is a new file occur-testsuite.el for the `test' subdir to test regressions in occur functionality. I could port tests to unit test frameworks when they will be added to Emacs.