added cases in author-cleanup code and more tests for the code