Fix tests in object controller and search form