little improvement for creating testagent