Error fix, added -3 option to commands and added logic to run tests as part of the deploy process