scanner: Use new destroying request functions and update tests

Signed-off-by: Tadeo Kondrak <me@tadeo.ca>
3 jobs for destroying-request-functions in 1 minute and 22 seconds (queued for 3 seconds)
latest
Status Job ID Name Coverage
  Prep
passed #6241378
debian:buster@container-prep

00:00:12

 
  Build
passed #6241379
build-native-autotools

00:01:10

passed #6241380
build-native-meson

00:00:21