[backend] Adjust test searching behaviour + fix contracts.
Merge pull request #4 from e45lee/ui-changes

[backend] Adjust test searching behaviour + fix contracts.