Strange results when trying to change value in Powershell Dictionary

So I have an Ordered Dictionary object $Test:

PS C: $Test

Name       Value
----       -----
name       John Smith
country    USA

I can get “John Smith” by using $Test.name just fine, but when I try to change the value with `$Test.name = “Jane Smith”, I get:

The property 'name' cannot be found on this object. Verify that the property exists and can be set.

When I try $Test["name"] = "Jane Smith", I get:

"Cannot convert value "name" to type "System.Int32". Error: "Input string was not in a correct format."

I assume the latter is the way to change values of Dictionaries, but I never set what kind of value type it should be, and $Test.name.gettype() tells me it is a string, which makes sense as it was created via $Test.add("name","John Smith").

What is going on??