(squash before merging) add unit tests for ThreadPresenter