Added tests for EncodingSelector