refactor(staticContentHandler): Tests for static content handler rewritten with spys instead of mocks