add interface UT for RC,BS check and code refactor

review at:
https://rbcommons.com/s/OpenH264/r/682/