Ok so I got confirmation that the tests are bad and my mutex hack wasn't
a real solution (as I've expected). Now commiting first test for real
solution. compiles but all tests fail.