Add test for maintenance functions
Add test for debug functions