diff --git a/src/json-editor.c b/src/json-editor.c
index 4da19518550d4d20c33cc348101c6b2a8c87bb86..6fc28aaaad4a47a24f288cb7f038efdcd7001837 100644
--- a/src/json-editor.c
+++ b/src/json-editor.c
@@ -8,7 +8,7 @@
 #include <libubox/blobmsg_json.h>
 #include <json-c/json.h>
 
-#include "api.h"
+#include "json-editor.h"
 
 /* will allocate memory! remember to free! */
 static char *get_file(const char *path)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 6313caeb353eba6eb3f6172788a2042243971212..4f536a69e7d930289bb12a2c4ebba4ede125afa1 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,6 +1,6 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
-#INCLUDE_DIRECTORIES ("${PROJECT_SOURCE_DIR}/src")
-INCLUDE_DIRECTORIES ("${PROJECT_SOURCE_DIR}")
+INCLUDE_DIRECTORIES ("${PROJECT_SOURCE_DIR}/src")
+#INCLUDE_DIRECTORIES ("${PROJECT_SOURCE_DIR}")
 FILE(COPY test.json DESTINATION .)
 
 find_library(JSON_LIBRARIES NAMES json-c)
diff --git a/test/api_test.c b/test/api_test.c
index 76d50011c4c2e389580f35f51094e931a09b3820..227202eaf660193f7f4484ea24999fd38d5211ca 100644
--- a/test/api_test.c
+++ b/test/api_test.c
@@ -5,7 +5,7 @@
 #include <json-c/json.h>
 #include <libwebsockets.h>
 
-#include "api.h"
+#include "json-editor.h"
 
 struct test_env {
     struct json_object *file_obj;