New api basic tests

and uri-escape it