It would get considered for the lending test assuming you are reporting it as a small business loan. But then you could not report it as a CD loan and get credit in that way. If you would want to try and get CD credit you need a whole lot more info, such as, proving the tenants are low to moderate income or the building is in a low to mod income census tract (but this is difficult to get credit for with just that info alone). Whether you borrower is non-profit or profit is of minor consequence. How does the loan benefit low to mod income geographies or people.
_________________________
Societies that do not find work in and of itself "pleasing to God and requisite to Man," tend to be highly corrupt.