diff --git a/mqtt/packet/publish_test.go b/mqtt/packet/publish_test.go
index <HASH>..<HASH> 100644
--- a/mqtt/packet/publish_test.go
+++ b/mqtt/packet/publish_test.go
@@ -25,7 +25,7 @@ func Test_publish_setFixedHeader(t *testing.T) {
 	}
 }
 
-func Test_setVariableHeader(t *testing.T) {
+func Test_publish_setVariableHeader(t *testing.T) {
 	p := &publish{
 		qos:       mqtt.QoS1,
 		topicName: []byte("topicName"),
@@ -49,7 +49,7 @@ func Test_setVariableHeader(t *testing.T) {
 	}
 }
 
-func Test_setPayload(t *testing.T) {
+func Test_publish_setPayload(t *testing.T) {
 	p := &publish{
 		message: []byte{0x00, 0x01},
 	}
@@ -60,3 +60,9 @@ func Test_setPayload(t *testing.T) {
 		t.Errorf("p.payload => %v, want => %v", p.payload, p.message)
 	}
 }
+
+func TestNewPUBLISH_optsNil(t *testing.T) {
+	if _, err := NewPUBLISH(nil); err != nil {
+		nilErrorExpected(t, err)
+	}
+}
Update mqtt/packet/publish_test.go