Unit tests to check 'Duration change' algorithm of MediaSource Object

Added unit tests to check 'Duration change' algorithm of MediaSource Object.