Added test for getAllMedia, and added getAllMedia