Reafactored binary deployment tests for running them faster.