Fix url bug
Add testing framework and tests