Add functionnal tests

Hey !

this is functionnal tests first implementation, comments welcome