Added some more tests for background.js