refactor(caPatchService): reorganize functions to reflect intended use
tes(caPatchService): fix failing test caused by incorrect spy