added doc and test for src/stan/common/initialize_state