Added test for case source.kind_of?(Hash)