Test empty file query in scanner