starting to implement mocha based tests for core - and the supporting functions as well -