Use component version of mocha and expect
Only test with querySelectorAll if it exists
IE8 do not support Array.isArray
All objects does not have .hasOwnProperty