#10 search input in template
merge from master
 #10 functional search. with tests