Test catching fail in preinstall and throwing fail in tests