small bug fixes, tests updated
bug fix console.log ie9