NEVER DISCONNECT THE BATTERY WITH THE ENGINE RUNNING.
On older cars this was a way you could test the alternator. In a newwer cars with ECM, BCM, TCM, etc... NEVER DISCONNECT the battery with engine running. These controllers have semiconductor chips that are sensitive to voltage spikes and...