tests: Move monitor test functions into common utils
It's very useful to have common functions for easily creating a monitor test setup for all kinds of tests, so move create_monitor_test_setup() and check_monitor_configuration() and all the structs those are using to monitor-test-utils.