i think the right fix here is something like:
```ruby
 res && res['result'] == true
```

the tests fail because res is false.

I didn't look into why res is false (have a look at the parse function) maybe its a broken test or a wrong response?