Added new test cases for when a preloaded web view push or replace layers while outside the statck.

(cherry picked from commit 008649d3952d1c770af5ba0eb81c0c44d2eeac76)