add some unit tests for guide