* fix typo in method name runningInTestMode and be compatible with previous version