fix and add testcases for interactive serializer