Tests

Not complete nor fully robustified but some test is better than no test.