adds test for endorsement feature
completes de endorsement feature. All tests pas