Wrote a test with actual sql for probability calculator.

Closes #11