can we move the tests for core into its own file? tests/lib/core.js