Fix typo for getRepository in tests