tests for mark_read plugin and a bugfix