Add tests for the ruby port