Add unittests for bridges.c module

It didn't have any tests explicitly for it, and it currently has:

make directive line coverage function coverage
coverage-html 19.9% 34.4%
coverage-html-full 58.1% 78.1 %