Update endpoint in test