You can check with this blog.. found some useful information about covering more lines in ag grid test coverage.