Add tests in python