add testMode programtically