spec for onerror hook added