Add tests for the handle cache checks
Add integration test for scan REST service