including connection error test and checking for callback