Added tests for HasTimestampListener and QuerySpecificationListener.