Add tests to figure out whether Windows can change the primary buffer capabilities after setting the buffer format. Based on a patch by Alex Villacís Lasso.