Modify to get author name correctly and add tests.