Test layout before changing page completely.