endpoint tests