Improve boxed structure unittest.