updated unit tests
added automatic track detection flag
added track autoDetect to API and updated unit tests
updated auto detect or manual track selection logic