improve ruby test