set up test environment and basic tests for core.