Add unit tests for usage of endpoints and endpoint strings