Refactor the test layer.

- Move the core initialization into the core test namespace.