Fix outcomes page
Added test coverage for outcomes#index. Corrected code.