Include google test, add tests, fix bugs

GTest included.
Added few tests for DefaultBillingRules.
Fixed some bugs.