some tests

I tried to write some test, but there is some problems I can't solve.
If you run test, there will be 3 fails, each one commented. It fails in
tests, but works in normal run.