Adding unit-test.
Implementing code review changes.
Merge pull request #1 from lijupm/master

Adding unit tests for issue and search services