Build extensions before running tests - another piece of #754