made function testable
added new test
Merge branch 'master' of github.com:quitschibo/firespotting-chrome-extension