adding tests for endpoints