add a test for conn() and error()