Wrote MaterialPackageManager.apply_view() tests.