container: add test for 'with' method