add type to mediaselection container
add tests for media selection with types