Containers for the purpose of retaining a material to be analysed