Added test file for union types (#721).