refactored user and wiki controllers, added a new test