moves all tests into a "tests" submodule

I checked that all tests are still being executed.

I didn't move the macro tests, because they don't depend on anything from core.