added test fail handlers