add unit tests to check throwing the exceptions
Merge branch 'feature/robust_zero_init' of https://github.com/stan-dev/rstan into feature/robust_zero_init