Simple dictionary as probability mass function, w/tests.