It also adds extended-blend tests. Based on a previous patch by Emmanuel Pacaud <emmanuel.pacaud@free.fr>