Add tests for changing display type for os_profiles.

Tests for #4814