add expect for warn message