test if there's err when read