Separate host from endpoint path
Add initial tests