fixed available locales deprecation warning
fixed 'does not include' operator (closes #710)
fixed failing test
merged winston's test fix