unit testing for author