Added disconnect packet and tests