Fix some regressions
Update test_embedded_view to use mode instead of view