checkout: add tests for -b and --track