Authentication tests. #1288