Pass dom element wrapped in $ to insert function
Update test suite