added unit tests for subscription class