Fix bug in test for stochastic singularity