endpoint tests added