added controller and view tests