implemented the tests for subscription