renamed view specs to be unit specs
Added spec for invalid document type
added spec for text documents