Adding VisibleForTesting annotation, replacing magic numbers with variables for likely webapp/REST API path components