merged test.py with Bauduoin