Added tests for createElement for non-HTML documents