Tests for cat cmd.