refactor tests and remove redundant lines

7 jobs for check-uci-config in 10 minutes and 1 second (queued for 2 seconds)
latest
Status Job ID Name Coverage
  Test
passed #465110
blackbox_mock_mqtt

00:02:35

passed #465111
blackbox_openwrt_mqtt

00:10:00

passed #465112
blackbox_openwrt_ubus

00:08:24

passed #465109
blackbox_openwrt_unix_socket

00:09:22

passed #465107
flake8

00:01:26

passed #465113
sample_module

00:02:00

passed #465108
unit_tests

00:02:17