added an integration style test for endpoints