Add test cases for Python lib.