CastNode and tests.