adding TDD style tests to Core