Fixed testmode not working