Improve the code coverage
Fix for browsers that don't support indexOf on arrays