handle pre:test errors