Core tests

Last part of core tests. The work is done. Everything is green.