tests: add basic encoder reading to test