Scanner and tests