adding construct_url_patterns and url_patterns to restroom API with unit tests