Added more tests for cleanup, casting, unions, and default values.