Adding test for an endpoint