Removed jQuery from mocha tests
Extracting created test elements from array so functionality is tested for unwrapped elements