loader hook error condition tests