added pledge factory tests