implemented test authentication