Added Rspec test for the background process