Switch use of HasTraits.get to HasTraits.trait_get in tests

Remove uses of `HasTraits.get` in tests now that the method no longer exists.