Moved tests to separate unit

Also added stub for core tests