Add tests for `Q.frequency` and `...AQ.frequency`