Added some unit tests for the billing tasks