move xstream test to shared.