controller test modified to add log endpoint