diff --git a/src/web/hooks/__tests__/useSelection.jsx b/src/web/hooks/__tests__/useSelection.jsx
new file mode 100644
index 0000000000..6996fcd058
--- /dev/null
+++ b/src/web/hooks/__tests__/useSelection.jsx
@@ -0,0 +1,78 @@
+/* SPDX-FileCopyrightText: 2024 Greenbone AG
+ *
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+/* eslint-disable react/prop-types */
+
+import {describe, test, expect} from '@gsa/testing';
+
+import {fireEvent, render, screen} from 'web/utils/testing';
+import SelectionType from 'web/utils/selectiontype';
+
+import useSelection from '../useSelection';
+
+const TestComponent = () => {
+ const {selected, selectionType, select, deselect, changeSelectionType} =
+ useSelection(SelectionType.SELECTION_USER);
+ return (
+ <>
+ {selectionType}
+
+
+