split unit test file into 2 files: `core` and `cleanup_guard`