Add has_pref method
Add test for has_pref
Update json gem