Improve code coverage for bgp_attr.cc.

Change-Id: I8af3c82cba7e3bf8b4b79b4c119448d064d8c797