Added new tests for the search widget rendering functionality and fixed other failings.