add core_test.go