move common file to test_core