Updating ruby version
fixed test logic