Added simple test for background saving

- Refactored some insert actions into their own function.
- Might need a little more logic in the test function. I ran ps aux to
  see if the child proc shows up and it did.