added more unit tests for lan and updated dynamic switching of lan channels