set testmode when running in debug mode