Testing state mechanism