Added unittest for subscription error