Fix logic for deployable branch test