Unit testing endpoints 403 FORBIDDEN

Folks, anyone found the solution for entry.notFound error ? I can see the same error.