Replace setLocale and freeze with a more master-like API
land parser tests