avoid view rendering in controller testing