REGISTRY-2172 Subscription in topicIndex cannot be found

Change single endpoint into 2 different points. 
Corrected the 1st resource path and add some good coding practice to the test case.