Add lightweight test runner and move some tests into core tests