api/app: refactoring deployInfo and GetDiffInDeploys tests