API changed in commit 5523cc248d3e33341d5472b83fae01158298b715 but the tests was not modified to reflect the changes.