Remove annoying newlines from API tests