Tests controller

* Add test and refactor for shares_controller and likes_controller