added documentation for testmode