Statistical analysis of spatial expression patterns for spatially resolved transcriptomic studies