add tests for subscribing