Unit test updates

get_effective_* now returns sorted input. Adjust unit tests to acknowledge that.
Fix grep_to_livestatus where input is a list

* common in adagios