added stats test
added diff tests
test tmp dir not removed in case of failures
main(...) moved to rubik.application.main module
test programs are executed by calling main(...)