Implemented fully featured test mode.