Fix apache_module states to return None and changes dict in test mode

Fixes #16953.
Added changes dict to apache.configfile state in test mode
Merge pull request #16959 from whiteinge/apache_modules-test-mode

Fix apache_module states to return None and changes dict in test mode