Test corrected to use QuerySerialized instead of Query