tests: add tests for endpoints