Search(after enter) backend funktionality

and unit tests. Stil lacking easy(gui) testing.