DOM element creation should be overrideable

- Add test for _createElement
- Send tag name to _createElement