unit tests primarily for subscription and unsubscription