Added tests for take subcommand