add tests for the monitor decorator factories
fix compatibility with 2.6