Replace all unit tests with BDD style tests in core_test.go