added tests for pledges