Add test directory and a script MgO.py