Port @zwily's engine tests to Ruby.