Test new scan function