add relative mutual information function

Additional test cases