[1016578] Added unit test for union type