Fixed some bugs

- Added http response status 304 to sync_design_doc
- Added an input parameter to test_views, this is
  a workaround.

These tests are for CouchDB that requires credentials. Will need a solution to test both environment next.