Removed purge of temp directory
Fixed critical section leaving
Fixed tests which does not use Assert from Nette/Tester