writing tests for the pledges model