add tests for digester