Tests for view formats middleware.