Added more tests cases for encoding check