Add tests and bugfixes
Closes #1
Fixes some bugs that were introduce with the conversion from posix to the std thread support library.
Note: the tests are not ran by the CI since Conda requires the tests to be installed with the package which is kind of weird. To be discussed further.
Edited by Samuel Debionne