add test spec for load page error
improve performance