B matrix tests