ruby: mem_spec add test