Added module testing; added "pending" state for module loader