1. test connect and read for exception