fix write_new_test_record return, to_json now a @staticmethod