AUI-1622 Fix aui-base unit test for ie8

The unit test was using indexOf, which doesn't work for ie8. Also, it was adding a comma at the end of an array, which causes it tu receive an extra element with value `undefined`. Removed that too and the test now also passes for ie8.