Fix a problem caused by third party package update
Fix some bug in balanced processor, add integration test for invoicing