Switched from window.WebCL to window.webcl, fixed a few buggy test cases