New tests added for joint probability matrix