Remove unused test method
Add unit tests for get_agreement_or_404