test: refactor deploy tests to use fixture mocks for improved isolation