New test interface

The last line should be `| 0xffffffffL`, because `x.toLong` extends the sign bit of `x` to the most significant word of a `Long`.