adding more tests for readcontainer. moved code to get samples to there from common.cpp