Moved backup utility methods into separate module.
Added a small test for it.