avoid double counting when error is caught within a test