Add tests for subscribe decorator.