Add unit tests for SubscriptionConsumableInArrear class (and fix a few bugs)