Tests, and remove hardcoded paths

Two differents features in the same pull request, because more is better !

Also, including changes from Serialtueur, because more is better :D :D :D