57805658 fix search in multithreading environment

Tests the search in case 2 users created 2 identical searches in the DB (they made it parallel with each other on the same time) and there is another user trying to create the same identical search, again.