Fix ruby tests

Review OTS by @coffeemug