refactor container core tests
create common container base class and refactor container classes to use it