move test case to test_core