1. Update no. of entries after adding new location
2. Added unit test for adding rows

GCP-10308

Reviewer: Daniel Villafuerte