added test with basic restricted_search