testmode fixed