add test cases for demux