Tests simple operations with duration attribute of MediaSource object.