beginning of agent tests