add `is_json?` and `is_term?` tests
fix incomplete returns from `is_json?`