Fix issue in tests where variable had wrong name

These tests worked because the variable o was defined in previous
tests.

Fixes #546