[WIP] Fix functionnal tests

This PR aims to fix tests that crashes.
For now, it only increased the tests' speed.