add unittest for pjson