Added processer count and fixed framebuffer detect code in test.js