[archimedes]: Improved tests so as not to leak threads