ruby: add test