Added functional test for MediaManager