bunch of tests and fix
added Thread.pass
tests fix