move assignments out of tests

I had forgotten to make this change in #12.