Add query and extract job

Nitpick: could just be `self.assertIsNone(result)`.