added unittest for form
refactored test_views. All pass