testing the forwards backwards algorithm on the state probability