Add tests for the /scans service handler using the new framework