fix authentication test