Password encryption tests