test how to get probability