Methods added to ScanCache, test created

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>