fix the videos test name
remove redundant code related to resource retrieving

create the retrieveResource() function, making the code more consistent
Merge pull request #7 from MaximeBouchenoire/cleanups

Code cleanups