Completed tests and fixes for probability calculator.