Added correct JSON responses for createTrial