reverted to self.write for TestPage