Added fail state to module loader; added bits to help test moduleLoader