Add unit test for BetaComparator class.