Fixed test cases and also added a null check damn null checks :fearful:
Fixed the wrong end point from what was mentioned in the readme.