improve ruby code
improve tests