add test for mixed input code