Rename test_basic => test_core
Refactor core tests into module