Index: /CKEditor/tests/tt/3664/1.html
===================================================================
--- /CKEditor/tests/tt/3664/1.html	(revision 4181)
+++ /CKEditor/tests/tt/3664/1.html	(revision 4181)
@@ -0,0 +1,52 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+	<title>Ticket: #3664</title>
+	<meta name="tags" content="editor,unit,all">
+	<script type="text/javascript" src="../../cktester/cell.js"></script>
+	<script type="text/javascript">
+CKEDITOR.test.addTestCase( ( function ()
+{
+	var assert = CKEDITOR.test.assert;
+	// Local references.
+	return {
+		/**
+		 * Test insert table into an empty document, it's expected that the
+		 * first empty paragraph will be replaced by the inserted table.
+		 */
+		test_insertTable : function()
+		{
+			var self = this;
+			CKEDITOR.replace( 'editor1',
+				{
+					on :
+					{
+						instanceReady : function( evt )
+						{
+							var editor = evt.editor;
+							editor.dataProcessor.writer._.rules = {};
+							self.resume( function ()
+							{
+								editor.focus();
+								// Wait for selection change happened.
+								self.wait( function()
+								{
+									var table = CKEDITOR.dom.element.createFromHtml( '<table><tr><td>table</td></tr></table>', editor.document );
+									editor.insertElement( table );
+									assert.areSame( '<table><tbody><tr><td>table</td></tr></tbody></table>', editor.getData() );
+								}, 500 );
+							} );
+						}
+					}
+				} );
+
+			this.wait();
+		}
+	};
+} )() );
+	</script>
+<body>
+<textarea id="editor1"></textarea>
+</body>
+</html>
