Added tests
Some cosmetics for lambdas
Added sort field handling to search request factory
Implemented basic search result factory