Added tests for managed listeners.