Test selecting string from command.

See #100.