fixed logging errors to console for older browsers and fixed defineProperties test cases