Add tests for ContentErrorView. fix bugs for ContentErrorView