Fix authenticationMechanisms check in jstest helper