Added unit tests for simdata_guo. Fixed some code to help tests pass.