Addeded register with name functions
Added tests.

Fixed target path on dub.json.