Export scan_old/1 when compiled with TEST defined.