Adapt the tests from the ruby version.