test/bitrate: add unit tests for bitrate library