Tests for DynamicCast.
(closes #43)