Added tests for Josie.log

Added detection of basePath for node.js