fixed agent tests