There are a bunch of great examples of using vagrant for testing purposes in
High Availability for the LAMP Stack: Eliminate Single Points of Failure and Increase Uptime for Your Linux, Apache, MySQL, and PHP Based Web Applications by Jason Cannon which I have on my Kindle.