Adding hooks for running tests via Grid