Adjust tests for POST search and make sure Rakefile works with Rake 10