Throw if tryign to add view middleware without view service.
Added tests for Route.