ticket:6 add tests(using django-webtest)