Add test for read subprocess output exception.