Fixed getFrequency NPR when querying non-existant token
Added test coverage tools
Initial tests for Document