Added nontrivial unit-test to CoreExamplesSpec.js.