Add tests to cover handling of core modules.