Add capability to run tests automatically