Small corrections in url patterns and view functions
Adds basic testing