Removed dev console.logs
Added test against global hooks