Test mode support