autowires logrepository to test