If there is nothing to show it should responsed with a Http404 error.
Fixed some minor errors.
Wrote some more test.