Adding initial version of test_core used as core under test jut to drive the test of coretest.