Updated to run tests locally or on auto builds
automated testing added