Refactored the youtube framework tests as suggested in #517.