Fix Ruby unit tests