Add tests for changing display type for os_profiles.
Fix test.
Merge pull request #5044 from openscholar/4814-test

Add tests for changing display type for os_profiles.