Added tests for all encoders.