add endpoint tests