Adding some endpoint tests