Add unit test model for search result
Fix JSHint errors so tests pass