Add test method for compareTo and json. Those methods are ignore because compareTo is not implementes, and json is bugged (issue 691)