add tests to core files