Streams: test plugin in inter test + fix mirror type issue with optimization strategy