moved setting duration to getLiveStreams
added a test method for duration