fix tests to check content-type for HTML views to be text/html