Added test to check that the unsubscribe function is working correctly

Change-Id: I5acec101022035c0894841b0d1622b4a50295c77
Merge "Added test to check that the unsubscribe function is working correctly"