throw exception if connection not found
improve tests, move setup into a test method to include coverage data