unit tests on switch-module.