added authentication andalso make test