Fix tests of context pages