Crazy port of a test from the ruby client that already works.