Correctly determine container position.

Closes #80. Refactor interaction tests.