add ATTR_TEST_WEAK to fix the annoying ceedling issue with protocol cmd link
remove unnecessary mock