adds TestAgent for test and development environments