Added test for assignSearchParameters