Added tests for the sanitization of join table json.