added test for pledges and added resources pledge