fix test dependencies and add min ruby version