Add unit tests for bchean.