fix minor bugs. add a test for the partnership facade.