update of test code and removal of deprecated code in gridcontainer