A framework for building virtual testing laboratories