Tests: set and get answers in a hopefully more stable way.

I am again hoping this will fix spurious test failures.