Add endpoint tests