test if connecting correctly