added unit test for generateAuthorsFromList and generateReference
refactored unit test