Add function for constructing uri
Add test file to test API interface