use render_app instead of mock_app in test
make use mime_type returns a string or nil