Fix bug in bootstrapClient opts.version, and add test