Switched hardcoded string for const value
diff --git a/json_formatter_test.go b/json_formatter_test.go
index 2f9dae7..51093a7 100644
--- a/json_formatter_test.go
+++ b/json_formatter_test.go
@@ -180,7 +180,7 @@
 		t.Fatal("Unable to format entry: ", err)
 	}
 	s := string(b)
-	if strings.Contains(s, "time") {
+	if strings.Contains(s, FieldKeyTime) {
 		t.Error("Did not prevent timestamp", s)
 	}
 }
@@ -193,7 +193,7 @@
 		t.Fatal("Unable to format entry: ", err)
 	}
 	s := string(b)
-	if !strings.Contains(s, "time") {
+	if !strings.Contains(s, FieldKeyTime) {
 		t.Error("Timestamp not present", s)
 	}
 }