Fix tests to work with drivers that don't support a primary buffer.