copy from tw for pages test