fixed test case to run on browsers without console.log