Added endpoint tests