Bugfixes and unit tests for stochastic purely forward-looking models