Test coverage complete for pubdetails function