use "has" instead of home rolled hasOwnProperty wrapper

also fixed mocha runner in package.json/scripts/test