test exception case in reader