move design doc creation to view tests

create view tests file since there are more view tests to come and I
think it's good to encapsulate this since the design doc handling is
somewhat independent of the basic KV engine.