If Pakistan is able to beat Australia and reach the finals then ACB might send their best team to Pakistan. It seems Ramiz Raja has been lucky for the team as soon as he joined the PCB this teams performance has changed drastically. They are consistently playing very good now and you never know they might win the world cup this time.
What happens in T20 format will have minimal impact on the test squad. In all probability, CA will send a second string side as the main players will pull out of the tour. And it is going to be easy for Pakistan, give the home advantage.