Added unit tests to the wiki service. Fixed small issues in the wiki service.