Added tests for AbstractEncoding.