Refactored text decoder test to use mock and new operator ==.
Replaced a custom handler with a mock in decoder chain test.
Replaced final pseudo mock in test-decoder-chain.