Improve the containers unit tests (add error checking)

Add error checking and improve the output of the failure