Testing for spatial association between a point process and another stochastic process