more unit test and functions for media list