Reorder test which does not represent real world usage

We don't generally modify our classes at runtime like this. Let's create
the instance after the class is created. Original commit doesn't imply
that this was intentional behavior.
Merge pull request #15696 from sgrif/sg-bad-test

Reorder test which does not represent real world usage