Added the assert_sizes() method.