diff --git a/hls-retrie-plugin.cabal b/hls-retrie-plugin.cabal
--- a/hls-retrie-plugin.cabal
+++ b/hls-retrie-plugin.cabal
@@ -1,6 +1,6 @@
 cabal-version:      2.2
 name:               hls-retrie-plugin
-version:            2.2.0.0
+version:            2.3.0.0
 synopsis:           Retrie integration plugin for Haskell Language Server
 description:
   Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>
@@ -10,7 +10,11 @@
 maintainer:         pepeiborra@gmail.com
 category:           Development
 build-type:         Simple
-extra-source-files: LICENSE
+extra-source-files:
+  LICENSE
+  test/Main.hs
+  test/testdata/*.hs
+  test/testdata/*.yaml
 
 source-repository head
     type:     git
@@ -28,9 +32,9 @@
     , directory
     , extra
     , ghc
-    , ghcide                == 2.2.0.0
+    , ghcide                == 2.3.0.0
     , hashable
-    , hls-plugin-api        == 2.2.0.0
+    , hls-plugin-api        == 2.3.0.0
     , hls-refactor-plugin
     , lens
     , lsp
@@ -65,5 +69,5 @@
     , hls-plugin-api
     , hls-refactor-plugin
     , hls-retrie-plugin
-    , hls-test-utils             == 2.2.0.0
+    , hls-test-utils             == 2.3.0.0
     , text
diff --git a/test/testdata/Class.hs b/test/testdata/Class.hs
new file mode 100644
--- /dev/null
+++ b/test/testdata/Class.hs
@@ -0,0 +1,7 @@
+module Class where
+
+class Identity x where
+    identity :: x -> x
+    identity x = x
+
+function x = identity x
diff --git a/test/testdata/Identity.hs b/test/testdata/Identity.hs
new file mode 100644
--- /dev/null
+++ b/test/testdata/Identity.hs
@@ -0,0 +1,5 @@
+module Identity where
+
+identity x = x
+
+function x = identity x
diff --git a/test/testdata/Imported.hs b/test/testdata/Imported.hs
new file mode 100644
--- /dev/null
+++ b/test/testdata/Imported.hs
@@ -0,0 +1,5 @@
+module Imported where
+
+import Identity
+
+f x = identity x
diff --git a/test/testdata/NestedLet.hs b/test/testdata/NestedLet.hs
new file mode 100644
--- /dev/null
+++ b/test/testdata/NestedLet.hs
@@ -0,0 +1,7 @@
+module NestedLet where
+
+
+
+function x =
+    let identity x = x
+    in identity x
diff --git a/test/testdata/NestedNested.hs b/test/testdata/NestedNested.hs
new file mode 100644
--- /dev/null
+++ b/test/testdata/NestedNested.hs
@@ -0,0 +1,10 @@
+
+module NestedNested where
+
+
+
+function x = meme x
+  where
+    meme x = identity x
+    identity x = x
+
diff --git a/test/testdata/NestedWhere.hs b/test/testdata/NestedWhere.hs
new file mode 100644
--- /dev/null
+++ b/test/testdata/NestedWhere.hs
@@ -0,0 +1,7 @@
+module NestedWhere where
+
+
+
+function x = identity x
+  where
+    identity x = x
diff --git a/test/testdata/Operator.hs b/test/testdata/Operator.hs
new file mode 100644
--- /dev/null
+++ b/test/testdata/Operator.hs
@@ -0,0 +1,5 @@
+module Operator where
+
+x */ y = x
+
+function x = x */ ()
diff --git a/test/testdata/hie.yaml b/test/testdata/hie.yaml
new file mode 100644
--- /dev/null
+++ b/test/testdata/hie.yaml
@@ -0,0 +1,11 @@
+cradle:
+    direct:
+      arguments:
+        - Class.hs
+        - Identity.hs
+        - Imported.hs
+        - Nested.hs
+        - NestedLet.hs
+        - NestedNested.hs
+        - NestedWhere.hs
+        - Operator.hs
