adding view test example to docs
more documentation for writing view tests